#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
"""
@File    :   demo.py
@Time    :   2023-03-17 18:09
@Author  :   坐公交也用券
@Version :   1.0
@Contact :   liumou.site@qq.com
@Homepage : https://liumou.site
@Desc    :   当前文件作用
"""
from psqlm import Connect

demo = Connect(host="127.0.0.1", user="root", password="1", port=3307)
# if demo.Status():
# 	print("连接成功")
# else:
# 	print("连接失败")
# res = demo.Select("select user,host from mysql.user;")
# if res:
# 	print(demo.data)
# else:
# 	print("获取失败")
#
# demo.Close()

demo.Insert(table="user", kv={"user": "root", "host": "localhost"})